# 当对某个考生的试卷进行打分时，首先要录入考生信息，然后对试卷答案进行解析，最后计算出分数
class InputInfo:
    def run(self):
        print("录入考生信息")


class ParseAnswer:
    def run(self):
        print("解析试卷答案")


class CalculateScore:
    def run(self):
        print("计算分数")


class AutomaticScoring:
    """在外观类中封装了对子系统的操作"""

    def __init__(self):
        self.info = InputInfo()
        self.answer = ParseAnswer()
        self.score = CalculateScore()

    def auto_run(self):
        self.info.run()
        self.answer.run()
        self.score.run()
# 业务代码
if __name__ == "__main__":
    AutomaticScoring().auto_run()
